﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="ListLikes.aspx.vb" Inherits="APhones2.ListLikes" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            font-size: xx-large;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <strong><span class="style1">&nbsp;&nbsp; Various Likes by Users</span></strong><br />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="SqlDataSource1">
            <Columns>
                <asp:BoundField DataField="PhoneName" HeaderText="Phone Name" 
                    SortExpression="PhoneName" />
                <asp:BoundField DataField="CountOfID" HeaderText="Number of Likes by Users" 
                    SortExpression="CountOfID" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:Phones %>" 
            ProviderName="<%$ ConnectionStrings:Phones.ProviderName %>" 
            SelectCommand="SELECT * FROM [CountLikes] WHERE ([CountOfID] &gt; ?) ORDER BY [CountOfID]">
            <SelectParameters>
                <asp:Parameter DefaultValue="0" Name="CountOfID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    <p>
    </p>
</asp:Content>
